import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
import Nation from '../views/head.vue'
import Index from '../views/home/index.vue'
import Rescover from '../views/Rescover/index.vue'
const routes = [
  {
    path: '/',
    name: 'Home',
    component: Nation,

    children: [
      {
        path: '/',
        name: 'Index',
        component: Index,
      },
      {
        path: '/rescover',
        name: 'Rescover',
        component: Rescover,
      },

    ]
  },
  

]

const router = createRouter({
  // history: createWebHistory(),
  history: createWebHashHistory(),
  routes
})


export default router
